package com.xmy.study.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 每年季度
 * </p>
 *
 * @author Coly
 * @since 2023-05-31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("edu_quarter")
public class EduQuarter implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("季度名称")
    private String name;

    @ApiModelProperty("学期")
    private String aliasName;

    @ApiModelProperty("季度的num值")
    private Integer num;

    @ApiModelProperty("开始日期")
    private LocalDate startDate;

    @ApiModelProperty("结束日期")
    private LocalDate endDate;

    @ApiModelProperty("第二次开课日期")
    private LocalDate twoCourseDate;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("1是学期；2是假期(1不可升班；2可升班)")
    private Integer type;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

    @ApiModelProperty("删除时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deletedAt;

    @ApiModelProperty("创建人id")
    private Long createdId;
}
